import http from '../utils/request'
import {AxiosResponse} from 'axios'

//列表
export const addresslist = (params: any): Promise<AxiosResponse<any>> => {
  return http.get("/address/list", params)
}
//添加
export const addaddress = (data: any): Promise<AxiosResponse<any>> => {
  return http.post("/address/add", data)
}

//批量删除
//删除  
export const addressdel = (id: any): Promise<AxiosResponse<any>> => {
  return http.get("/address/del", {id})
}

//修改
export const editdata = (onedata: object): Promise<AxiosResponse<any>> => {
  return http.post("/address/edit", onedata)
}
